package cmsoa.util.tos;

import cmsoa.util.ToImp;

import java.util.Date;


public class ToDate implements ToImp {

	@Override
	public Long parse(Object obj) {
		return ((Date)obj).getTime();
	}

	@Override
	public Date to(Object obj) {
		return new Date((Long)obj);
	}

}
